#!/bin/bash
function oldmove()
{
mydir=$1
phpf='.php'
bfis=$(basename $mydir)
fis=$(ls -d $mydir/*)
for fiss in $fis
do
if [ -d $fiss ]
then 
oldmove $fiss
#do cd $fiss;rename 's/\.php/\.class/' *;
else 
	if [ "${fiss/$phpf/}" != "$fiss"  ]
	then 
	#echo $fiss
	#rename 's/\.php/\.class/' *
		mv $fiss ${fiss%.*}.class;
	fi
fi
done
}
oldmove /home/robin/workspace/php/UES